package com.lgj.rocketmq.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: guangjie.liao
 * @since: 2023/9/20 23:25
 * @description:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "rocket.consumer")
public class ConsumerProperties {
    /**
     * 消费者最大重试次数
     */
    private Integer maxReconsumeTimes;
    /**
     * 消费者最大用线程个数
     */
    private Integer consumeThreadMax;

    @Value("${rocket.nameServer.host}")
    private String nameServerAddress;
}
